package com.woniuxy.main.service.impl;

import com.woniuxy.main.mapper.RolesMapper;
import com.woniuxy.main.pojo.Roles;
import com.woniuxy.main.service.DepartmentService;
import com.woniuxy.main.service.RolesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/*
 *
 *  @author zhc
 *  @create 2019-08-01 14:24
 */
@Service
@Transactional
public class RolisServiceImpl implements RolesService {
    @Autowired
    RolesMapper rolesMapper;

    @Override
    public List<Roles> findall() {
        List<Roles> roles=rolesMapper.findall();
        return roles;
    }
}
